/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */

import type { MaSearchItem } from '@mineadmin/search'
import MaDictRadio from '@/components/ma-dict-picker/ma-dict-radio.vue'
import { spotStatus } from '$/attractions/attraction-management/views/attractionSpot/data/common.tsx'

export default function getSearchItems(t: any): MaSearchItem[] {
    return [
    { label: '点位名称', prop: 'name', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '点位名称'}) } },
    { label: '点位状态', prop: 'status', render: () => MaDictRadio, renderProps: { placeholder: t('form.pleaseInput', { msg: '点位状态1:禁用2:正常'}), data: spotStatus } },
  ]
}
